import React from 'react';
import View from './view';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { userInfoAction } from 'cec-redux/userInfo/userInfoActions';

class Login extends React.Component {
    render() {
        return <View {...this.props}/>
    }
}

function mapStateToProps(state) {
    return {
      userInfo: state.userInfoReducer
    }
}
function mapDispatchToProps(dispatch) {
    return {
        commitUserInfo: bindActionCreators(userInfoAction, dispatch)
    }
}

export default connect(
    mapStateToProps,
    mapDispatchToProps
)(Login);